//
//  WebService.h
//  WeddingStoreFinder
//
//  Created by Macdev on 11/19/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CustomReachability.h"

@protocol WebServiceDelegate;

@interface WebService : NSObject <ReachabilityDelegate> {
	
}
	
@property(nonatomic, retain) NSMutableData *receivedData;
@property(nonatomic, retain) NSDictionary *jsonResult;

@property BOOL isOK;
@property BOOL done;
@property int wsType;

@property (nonatomic, assign) id <WebServiceDelegate> delegate;
@property (nonatomic, retain) NSError *wsError;

- (void) sendRequest;

@end

@protocol WebServiceDelegate
- (void) allWentOK:(WebService *)webService;
- (void) anErrorOccurred:(WebService *)webService;
- (void) networkUnavailable:(WebService *)webService;
@end
